package android.tusnotas.parser;

import java.util.List;

import android.tusnotas.beans.Course;
import android.tusnotas.beans.Grade;
import android.tusnotas.beans.Instance;

import com.thoughtworks.xstream.XStream;

public class TusNotasXStream extends XStream{

	public TusNotasXStream (){
		
		//Instances Configuration
		this.alias("ArrayOfPeriodo", List.class);
		this.alias("Periodo", Instance.class);
		this.aliasField("Nombre", Instance.class, "description");
		
		//Course Configuration
		this.aliasField("Clases", Instance.class, "courses");
		this.aliasType("Clase", Course.class);
		this.aliasField("NumeroAula", Course.class, "classroom");
		this.aliasField("NombreMateria", Course.class, "name");
		this.aliasField("DiasCursada", Course.class, "days");
		this.aliasField("Horario", Course.class, "timetable");
		this.aliasField("FechaExamen", Course.class, "examenDate");
		this.aliasField("Asistencia", Course.class, "attendance");
		this.aliasField("IDAula", Course.class, "idAula");
		this.aliasField("Novedades", Course.class, "newsList");
		this.aliasField("Carpetas", Course.class, "folders");
		this.aliasField("Grupo", Course.class, "group");
		
		//Grade Configuration
		this.aliasField("Notas", Course.class, "grades");
		this.aliasType("Nota", Grade.class);
		this.aliasField("Nombre", Grade.class, "activity");
		this.aliasField("Valor", Grade.class, "grade");
		
		
		
		//News Configuration
//		this.aliasField("Novedades", Course.class, "newsList");
//		this.aliasType("Novedad", News.class);
//		this.aliasField("Titulo", News.class, "title");
//		this.aliasField("Fecha", News.class, "date");
//		this.aliasField("Descripcion", News.class, "content");
//
//		//Folder Configuration
//		this.aliasField("Carpetas", Course.class, "folders");
//		this.aliasType("Carpeta", Folder.class);
//		this.aliasField("Nombre", Folder.class, "name");
//		
//		//File Configuration
//		this.aliasField("Archivos", Folder.class, "files");
//		this.aliasType("Archivo", File.class);
//		this.aliasField("Nombre", File.class, "name");
//		this.aliasField("Link", File.class, "link");
//		this.aliasField("Extension", File.class, "extension");
//		this.aliasField("Size", File.class, "size");
//		this.aliasField("Fecha", File.class, "date");
//		
//		//Group Configuration
//		this.aliasField("Grupo", Course.class, "group");
//		this.aliasType("Grupo", Group.class);
//		this.aliasField("Nombre", Group.class, "name");
//		
//		//Person Configuration
//		this.aliasField("Integrantes", Group.class, "persons");
//		this.aliasType("Persona", Person.class);
//		this.aliasField("Nombre", Person.class, "name");
//
//		//Person Configuration
//		this.aliasField("Mensajes", Group.class, "messages");
//		this.aliasType("Mensaje", Message.class);
//		this.aliasField("Usuario", Message.class, "user");
//		this.aliasField("Fecha", Message.class, "date");
//		this.aliasField("Texto", Message.class, "text");
	
	}
}
